package com.cd.hospital.mongo.servirce.impl;

import com.alibaba.fastjson.JSONObject;
import com.cd.hospital.mongo.servirce.IPoiService;
import com.cybermkd.mongo.kit.MongoQuery;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by weirdor on 2017/9/18.
 */
@Service
public class PoiServiceImpl implements IPoiService {

    @Override
    public List<JSONObject> queryAll() {
        MongoQuery mongoQuery=new MongoQuery();
      List<JSONObject>  list=  mongoQuery.use("poi").findAll();
        System.out.println(list);
        return list;
    }
}
